//
//  ShowTableMenuController.m
//  XKStudyDemo
//
//  Created by xukai on 2017/11/28.
//  Copyright © 2017年 xukai. All rights reserved.
//

#import "ShowTableMenuController.h"
#import "TableViewAnimationController.h"

@interface ShowTableMenuController ()

@end

@implementation ShowTableMenuController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    NSDictionary *dic = @{@"title" : @"左侧飞出"};
    NSDictionary *dic1 = @{@"title" : @"下落渐显"};
    NSDictionary *dic2 = @{@"title" : @"快速下落"};
    NSDictionary *dic3 = @{@"title" : @"左右出现"};
    NSDictionary *dic4 = @{@"title" : @"翻转出现"};
    NSDictionary *dic5 = @{@"title" : @"飞到顶部"};
    NSDictionary *dic6 = @{@"title" : @"跳动下落"};
    NSDictionary *dic7 = @{@"title" : @"向上靠拢"};
    self.dataSoureArray = @[dic,dic1,dic2,dic3,dic4,dic5,dic6,dic7];
    
    self.title = @"出现动画";
}

-(CGFloat) tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 60;
}

-(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    TableViewAnimationController *tabAnimationVC = [[TableViewAnimationController alloc] init];
    tabAnimationVC.index = indexPath.row;
    [self.navigationController pushViewController:tabAnimationVC animated:YES];
}


@end
